package cn.itcast.ssh.dao.impl;

import cn.itcast.ssh.dao.IFormDao;
import cn.itcast.ssh.domain.Form;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

/**
 * @author xiongshiyan at 2021/3/16 , contact me with email yanshixiong@126.com or phone 15208384257
 */
public class FormDaoImpl extends HibernateDaoSupport implements IFormDao{
    @Override
    public void save(Form form) {
        getHibernateTemplate().save(form);
    }

    @Override
    public void update(Form form) {
        getHibernateTemplate().update(form);
    }

    @Override
    public Form getById(Long id) {
        return getHibernateTemplate().get(Form.class, id);
    }
}
